#include <stdio.h>
#include <unistd.h>
#include <string.h>

void buffertest1()
{
    printf("hello linux");
    sleep(3);
}

void buffertest2()
{
    fprintf(stdout, "C:hello fprintf\n");
    printf("C:hello printf\n");
    fputs("C:hello fputs\n", stdout);
    const char* str = "system call: hello write\n";
    write(1, str, strlen(str));

    fork();
}

int main()
{
    buffertest2();
    return 0;
}